﻿using famails.bus;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace famails.BackEnd.page
{
    public partial class OpenList : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                int id = 0;
                int.TryParse(Request.QueryString["id"], out id);
                if (id > 0)
                    GetOpenMailByContentID(id);
            }
        }
        public void GetOpenMailByContentID(object contentid)
        {

            DataTable T = new EventBUS().GetOpenMailByContentID(contentid);
            rptOpenList.DataSource = T;
            rptOpenList.DataBind();
        }
    }
}